package com.controller.setting;
import com.comm.R;
import com.comm.vo.DispositionVo;
import com.service.setting.SystemDispositionService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
@RequestMapping(value = "/setting/systemDisposition")
@Controller
@Api(value = "第三方配置",tags = "第三方配置接口API")
@ApiResponses({
        @ApiResponse(code=200,message="请求成功"),
        @ApiResponse(code=404,message="找不到页面"),
        @ApiResponse(code=403,message="请求禁止"),
        @ApiResponse(code=401,message="请求未授权"),
        @ApiResponse(code=500,message="后台服务错误")})
public class SystemDisposition {
    @Autowired
    private SystemDispositionService service;
    //  1.7.1：编辑第三方配置：
    @ResponseBody
    @RequestMapping(value ="/addDisposition",method = RequestMethod.POST)
    @ApiOperation(value = "添加第三方配置的接口",notes = "添加第三方配置",httpMethod = "post", response = String.class)
    public  R addDisposition(@RequestBody @ApiParam(name = "实体类",value = "vo") DispositionVo vo){
        return service.addDisposition(vo);
    }
}
